<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<include file="Widget/head" />
	<script src="__JS__/jquery.form.js"></script>
</head>
<body>
<include file="Widget/menu" />

<div class="join_banner"></div>

<div class="login">
	<div class="sitewidth">
		<div class="loginbox row">
				<div id="formErr" class="alert alert-dismissible alert-danger" style="display: none;"></div>
				<form id="loginForm" class="form-horizontal" method="post" action="{:U('Index/login')}">
					<fieldset>
						<legend>欢迎登录众丁投</legend>
						<div class="form-group">
							<label for="account" class="col-lg-3 control-label">帐号：</label>
							<div class="col-lg-9">
								<input type="text" class="form-control" id="account" name="account"
									placeholder="请输入用户名" value="{$account}">
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputPassword" class="col-lg-3 control-label">密码：</label>
							<div class="col-lg-9">
								<input type="password" class="form-control" id="inputPassword" name="password"
									placeholder="请输入密码">
							</div>
						</div>

						<div class="form-group myformtxt">
							<div style="float:left;font-weight:700;color: #337ab7;margin-left:50px;"><a class="a_blue" href="{:U('Index/findpwd')}">忘记密码</a></div>
							<div ><!---class="col-lg-9 col-lg-offset-3"-->
								
								<label style="float:right;"><a class="a_blue" href="{:U('Index/register')}">还没帐号？立即注册</a></label>
							</div>
						</div>

						<div class="form-group">
							<div class="col-lg-9 col-lg-offset-3">
								<button type="submit" id="jqformsubmit" class="col-lg-12 btn btn-primary">立即登陆</button>
							</div>
						</div>
					</fieldset>
				</form>
		</div>
	</div>
</div>

{:W('Page/foot')}
<script type="text/javascript">
function imgClick() {
	$("#verifyIMG").attr('src',"{:U('Index/verify')}?"+ Math.random());
}
$(function($) {
	var options = {
		success: function (dd) {
			if (dd.status == 1) {
				//成功
				if (dd.url) window.location.href = dd.url;
				//else window.location.reload();
			}else {
				$("#formErr").html(dd.info);
				$("#formErr").show();
			}
		}
	}
	$("#jqformsubmit").click(function(){
		$("#loginForm").ajaxSubmit(options);
		return false;
	})
});
</script>
</body>
</html>